<?php

require_once(WSB_MODULES_PATH . 'sherpa/forms/SherpaForm.php');

class Sherpa_Form_FeuserData extends Sherpa_Form_SherpaForm
{

	public function init()
    {
    	$this->setName('feuserdata');

    	// E-Mail
        $element = new Zend_Form_Element_Text('username');
        $element->setLabel('sherpaEmail');
        $element->setAttrib('readonly', 'readonly');
        $element->addFilter(new Zend_Filter_StringTrim());
		$this->addElement($element);

    	// First name
        $element = new Zend_Form_Element_Text('firstname');
        $element->setLabel('sherpaFirstName');
        $element->setRequired(true);
        $element->addFilter(new Zend_Filter_StringTrim());
		$this->addElement($element);

    	// Last name
        $element = new Zend_Form_Element_Text('lastname');
        $element->setLabel('sherpaLastName');
        $element->setRequired(true);
        $element->addFilter(new Zend_Filter_StringTrim());
		$this->addElement($element);

    	// Button
        $element = new Zend_Form_Element_Image('btnSaveFeuserData');
		$element->setAttrib('src', 'sherpa/img/btn-speichern.gif');
		$this->addElement($element);

    }

}
